Pod::Spec.new do |s|
  s.name             = 'UGSDK'
  s.version          = '0.0.4'
  s.summary          = 'UGSDK 是一个用于游戏开发的工具包，提供支付、用户认证等功能。'

  s.homepage         = 'https://gitee.com/wangclwl/ugsdk-libs.git'
  s.license          = { :type => 'Proprietary', :text => 'Copyright 2018 AppsFlyer Ltd. All rights reserved.' }
  s.author           = { 'wangchuanliang' => 'wangchuanliang@gameale.com' }

  s.source = {
    :http => 'https://gitee.com/wangclwl/ugsdk-libs/releases/download/0.0.4/UGSDK.zip',
 }

  s.requires_arc = true
  s.ios.deployment_target = '13.0'

  # 修正后的框架路径
  s.ios.vendored_frameworks = 'UGSDK/UGSDK.xcframework'
  s.resources = ['UGSDK/UGSDK_Images.bundle']
  s.frameworks = 'UIKit','StoreKit','AppTrackingTransparency','AuthenticationServices','WebKit'

  # 修正后的工程配置
  s.user_target_xcconfig = {
    'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES',
  }

  s.pod_target_xcconfig = {
    'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES',
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386'
  }
end
